package com.shop.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shop.project.mapper.TypeMapper;
import com.shop.project.domain.Type;
import com.shop.project.service.ITypeService;

@Service
public class TypeServiceImpl implements ITypeService 
{
    @Autowired
    private TypeMapper typeMapper;

    @Override
    public Type selectTypeById(Long id)
    {
        return typeMapper.selectTypeById(id);
    }

    @Override
    public List<Type> selectTypeList(Type type)
    {
        return typeMapper.selectTypeList(type);
    }

    @Override
    public int insertType(Type type)
    {
        return typeMapper.insertType(type);
    }

    @Override
    public int updateType(Type type)
    {
        return typeMapper.updateType(type);
    }

    @Override
    public int deleteTypeByIds(Long[] ids)
    {
        return typeMapper.deleteTypeByIds(ids);
    }

    @Override
    public int deleteTypeById(Long id)
    {
        return typeMapper.deleteTypeById(id);
    }
}
